

export default {
    pageScrollTo (options) {
        if (typeof options !== 'object') {
            options = { scrollTop: options };
        }
        wx.pageScrollTo(options);
    },
    makePhoneCall (phoneNumber) {
        if (!phoneNumber) {
            return null;
        }
        wx.makePhoneCall({phoneNumber, success: (res) => {console.log(res)}, fail: (err) => {console.log(err)}});
    },

}
